import { post, get } from '@/security/request'
import { uploadFile } from '@/security/request'
import { Application_Form } from '@/utils/keyWord'

export function getPageApi(data: any): Promise<IPageResult<any>> {
    return get("/admin/anchor/video/page",  data);
}

export function createPosterApi(data: any): Promise<IRespResult<any>> {
    return post("/admin/anchor/video/create/poster",  data, Application_Form);
}

export function videoTranscodeApi(data: any): Promise<IRespResult<any>> {
    return post("/admin/anchor/video/transcoding",  data, Application_Form);
}

export function videoReplaceApi(filePath: string, formData?: object): Promise<IRespResult<any>>{
    return uploadFile("/admin/anchor/video/replace", filePath, formData)
}
